import request from "@/utils/request";
export function pageList(params, pageNum = 1, pageSize = 5) {
    return request.post(`/system/user/userList?pageNum=${pageNum}&pageSize=${pageSize}`, params);
}
export function insertUser(user) {
    return request.post("/system/user", user);
}
export function deleteUser(id) {
    console.log(id);
    return request.delete(`/system/user?admin_id=${id}`);
}
export function updateUser(user) {
    return request.put(`/system/user`, user);
}